<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <title></title>
    <script src="../../js/boot.js" type="text/javascript"></script>
    <link rel="stylesheet" href="SFXXGL.css" type="text/css" />
</head>

<body>

<div class="bigdiv">
    <form id="SFXXGLform">
        <div id="tabs1" class="mini-tabs" activeIndex="0">
            <div title=随访记录1>
            <div class="bottontitle">
                <span>随访患者情况</span>
            </div>
            <div class="HZXXGLContent">
                <table>
                    <tr>
                        <td class="tabletitle">就诊患者</td>
                        <td>
                            <input required="true" allowInput="false" class="mini-textbox" name="patientName" id="patientName" />
                            <input class="mini-textbox" style="display: none;" id="diacrisisId" name="diacrisisId" />
                            <input class="mini-textbox" style="display: none;" id="flupId" name="flupId" />
                        </td>
                        <td class="tabletitle">随访时间</td>
                        <td>
                            <input required="true" id="statrDate" class="mini-datepicker" allowInput="false" name="flupTime" format="yyyy-MM-dd H:mm:ss" timeFormat="H:mm:ss" showTime="true" />
                        </td>
                        <td class="tabletitle">妊娠结局</td>
                        <td>
                            <input required="true" class="mini-combobox txk-dict" style="width:150px;" textField="text" valueField="id" emptyText="请选择" dict="CQ_BASE_GEST_RESULT" showNullItem="true"  name="gestResultId" />
                        </td>
                    </tr>
                    <tr>
                        <td class="tabletitle">月经末时间</td>
                        <td><input  class="mini-textbox" name="lastMenses" /></td>
                        <td class="tabletitle">出生体重</td>
                        <td><input class="mini-textbox" vtype="float" name="nbcBw" />KG</td>
                        <td class="tabletitle">出生地点</td>
                        <td><input class="mini-textbox" name="birthPlace" /></td>
                    </tr>
                    <tr>
                        <td class="tabletitle">出生日期</td>
                        <td>
                            <input class="mini-datepicker" name="nbcBirthday" allowInput="false"   id="startDate" type="text"
                                   onfocus="WdatePicker({dateFmt: 'yyyy/MM/dd', maxDate:'#F{$dp.$D(\'endDate\')||\'new Date()\'}', onpicked: function(){calRange('#startDate', '#endDate', '#dateRange')}})"
                                   placeholder="开始日期" autocomplete="off"/>
                        </td>
                        <td class="tabletitle">出生检查</td>
                        <td><input class="mini-textbox" name="birthInspection" /></td>
                        <td class="tabletitle">出生身长</td>
                        <td><input  class="mini-textbox" name="nbcLength " /></td>
                    </tr>
                    <tr>
                        <td class="tabletitle">孕周</td>
                        <td><input class="mini-textbox mintext" vtype="int" name="gestWeeks" />W<input vtype="int" class="mini-textbox mintext" name="gestDays" />D</td>
                        <td class="tabletitle">头围</td>
                        <td><input  class="mini-textbox" name="nbcHeadCircumference" /></td>
                        <td class="tabletitle">后续治疗</td>
                        <td><input  class="mini-textbox" name="nbcHeadCircumference" /></td>
                    </tr>
                    <tr>
                        <td class="tabletitle">1分钟阿氏评分</td>
                        <td><input  class="mini-textbox" name="oneApgar" /></td>
                        <td class="tabletitle">5分钟阿氏评分</td>
                        <td><input  class="mini-textbox" name="fiveApgar" /></td>
                        <td class="tabletitle">引产日期</td>
                        <td><input class="mini-datepicker" id="childbirth" name="childbirthDate" allowInput="false"/></td>
                    </tr>
                    <tr>
                        <td class="tabletitle">引产孕周</td>
                        <td><input class="mini-textbox mintext" name="inducedGestWeeks" />W<input class="mini-textbox mintext" name="inducedGestDays" />D</td>
                        <td class="tabletitle">引产特殊情况</td>
                        <td><input class="mini-textbox" name="inducedSpecial" /></td>
                        <td class="tabletitle">引产原因</td>
                        <td>
                            <input class="mini-combobox txk-dict" style="width:150px;" textField="text" valueField="id" emptyText="请选择"
                                   dict="CQ_BASE_INDUCED_CAUSE" showNullItem="true"  name="inducedCauseId" />
                        </td>
                    </tr>
                    <tr>
                        <td class="tabletitle">尸检</td>
                        <td><input class="mini-radiobuttonlist" data="[{id: 1, text: '是'}, {id: 2, text: '否'}]" name="isPme" /></td>
                        <td class="tabletitle">新生儿性别</td>
                        <td><input required="true" class="mini-radiobuttonlist" data="[{id: 'm', text: '男'}, {id: 'f', text: '女'}, {id: 'n', text: '不详'}]" name="nbcSex" /></td>
                        <td class="tabletitle">标本留存</td>
                        <td  style="display: flex;">
                            <input required="true" class="mini-radiobuttonlist" id="isSpecKeep" style="width:150px;"data="[{id: '1', text: '是'}, {id: 2, text: '否'}]" name="isSpecKeep" onvaluechanged="valuechanged"/>
                            <input class="mini-combobox txk-dict" id="specKeepId"  multiSelect='true'  style="display:none;width:150px;" textField="text" valueField="id" emptyText="选择留存标本" dict="CQ_BASE_SPEC_KEEP" showNullItem="true"  name="specKeepId" />
                        </td>
                    </tr>
                    <tr>
                        <td class="tabletitle">资料上传</td>
                        <td ><input type="file" id="thisnibaba" name="dibAndDiacModel.dibFiles" multiple /></td>
                        <td class="tabletitle" valign="top">备注</td>
                        <td colspan="4">
                            <textarea class="mini-textarea" name="flupRemark" style="width: 98%;height: 80px;" emptyText=""></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5">
                            <input type="button" class="GDBTN" value="资料查询" onclick="onclick4(this)" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        </div>
    </form>
    <div style="width: 100%;margin-top: 50px; display: flex;justify-content: center;">
        <input type="button" class="SFXXGLsubmit" onclick="testAdd()" value="新增随访记录" />
        <input type="button" class="SFXXGLsubmit" onclick="testDel()" value="删除随访记录" />
        <input type="button" class="SFXXGLsubmit" onclick="submintSFXXGLform()" value="保存" />

<!--        <input type="button" class="SFXXGLsubmit" onclick="dropSFXXGLform()" value="作废" />-->
<!--        <input type="button" class="SFXXGLsubmit" onclick="renewSFXXGLform()" value="恢复" />-->
    </div>
</div>


    <div class="zhezhao"></div>
    <div class="zdmenu">
        <div class="zdmenubuttom">
            <img src="../../img/hide.png">
        </div>
        <div class="rightmenu">
            <div>
                <div class="rightselect">
                    <input class="thisrightselect" placeholder="身份证/卡号/姓名" oninput="changeselect()" />
                    <!--<label class="zuofeiclass"><input type="checkbox" class="zuofeicheck" value="" onchange="changeselect()" style="line-height: 30px;">作废</label>-->
                </div>
                <div class="rightuserconten">
                    <div class="XYuserconten">
                        <div class="righttitle">随访登记患者</div>
                        <div class="xinruguahao">
                        </div>
                    </div>
                    <div class="LSuserconten">
                        <div class="righttitle">历史随访患者</div>
                        <div class="lishiguahao" hidden>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>


    <div class="tanchuang" style="display: none;">
        <div class="BLZL">
            <div class="BLZLtitle">
                <div class="BLZLname">病例资料</div>
                <div class="closeduotaidiv" onclick="closeBLZL()">X</div>
            </div>
            <div class="BLZLconten">
                <!-- <div id="imgtab" class="mini-tabs" activeIndex="0" style="width:100%;min-height:200px;height: 100%;" plain="false" buttons="#downfile" >
                </div>
                <div id="downfile" >
                    <div style="background: url(../img/XZ.png) no-repeat;background-size: 100%; height: 70%;width: 70%;"></div>
                </div> -->
                <div class="mini-fit" style="width: 100%;">
                    <div id="files_grid" class="mini-datagrid" style="width:100%;height:100%;" showPager='false'>
                        <div property="columns">
                            <div field="fileName" headerAlign="center" align="center" allowSort="false" renderer="onActionRenderer">文件名称</div>
                            <div field="fileSize" headerAlign="center" align="center" allowSort="false">文件大小(kb)</div>
                            <div field="fileUpTime" width="120" headerAlign="center" align="center" allowSort="false" dateFormat="yyyy-MM-dd hh:mm:ss">上传时间</div>
                            <div field="fileDownloadNo" headerAlign="center" align="center" allowSort="false">下载次数</div>
<!--                            <div field="fileRemark" headerAlign="center" align="center" allowSort="false">文件备注</div>-->
                            <div field="upUserName" headerAlign="center" align="center" allowSort="false">上传人</div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</body>

</html>
<!-- 右侧菜单里的随访登记用户模板 -->
<script id="user" type="text/x-jquery-tmpl" data-site="">
    {%each(i,user) data%}
    <div class="user ${user.isValid}" onclick="rightuserclick(this)">
        <span class="thisuserid" hidden>${user.diacrisisId}</span>
        <img src="../../img/userimg.png">
        <p><span class="thisusername">${user.patientName}</span>【${user.outpatientNo}】<br/>${user.patientCardId}
        </p>
    </div>
    {%/each%}
</script>

<!-- 右侧菜单里的历史随访用户模板 -->
<script id="lishiuser" type="text/x-jquery-tmpl" data-site="">
    {%each(i,user) data%}
    <div class="user ${user.isValid}" onclick="rightlishiclick(this)">
        <span class="thisuserid" hidden>${user.diacrisisId}</span>
        <img src="../../img/userimg.png">
        <p><span class="thisusername">${user.patientName}</span>【${user.outpatientNo}】<br/>${user.patientCardId}
        </p>
    </div>
    {%/each%}
</script>
<script id="sf_content" type="text/x-jquery-tmpl" data-site=""></script>
<script src="SFXXGL.js"></script>